package com.situ.login.service;

import com.situ.login.dao.LoginUserDao;
import com.situ.login.entity.SysUser;
import com.situ.login.entity.quanxian;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LoginServiceImpl implements LoginService {
@Autowired
    LoginUserDao userdao;
@Override
    public SysUser LoginUser(String usr_Name, String usr_Password){

    return userdao.LoginUser(usr_Name, usr_Password);
    }

    @Override
    public List<quanxian> queryParentList(Integer role_id){
    return userdao.queryParentList(role_id);
    }
}
